package com.robot.topology.path.domain;

import java.util.ArrayList;
import java.util.List;

import com.robot.topology.graph.domain.Edge;

public class Path {

	private List<Edge> currentPath;
	
	public Path (){
		this.currentPath = new ArrayList<Edge>();
	}

	public Path (List<Edge> listOfEdges){
		this.currentPath = new ArrayList<Edge>(listOfEdges);
	}
	
	public Edge getEdge(int index) {
		return currentPath.get(index);
	}

	public List<Edge> getPath(){
		return currentPath;
	}
	
	public void addEdge(Edge edge){
		currentPath.add(edge);
	}
	
	public void deleteEdgeFromPath(Edge edgeToDelete){
		currentPath.remove(edgeToDelete);
	}
}